import request from '@/utils/request'

/**
 * 每日新增计划
 * @param {*} obj 
 * @returns 
 */
export const addPlanService = (obj) => {
    return request.post('/user/plan/add', obj)
}

/**
 * 查询每日个人规划
 * @returns 
 */
export const getMyPlanService = () => {
    return request.get('/user/plan/my')
}

/**
 * 完成规划任务
 * @param {*} obj 
 * @returns 
 */
export const doTaskService = (obj) => {
    return request.post('/user/plan/do/task', obj)
}

/**
 * 查询用户本月规划签到详情
 * @returns 
 */
export const getMonthDoTaskService = () => {
    return request.get('/user/plan/month/doTask')
}